<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchantFeedback-edit" th:object="${merchantFeedback}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户名称：</label>
				<div class="col-sm-8">
					<input id="merchantName" name="merchantName" th:field="*{merchantName}" class="form-control" type="text" disabled="disabled">
				</div>
			</div>
			 <div class="form-group">	
				<label class="col-sm-3 control-label">用户手机号：</label>
				<div class="col-sm-8">
					<input id="merchantPhone" name="merchantPhone" th:field="*{merchantPhone}" class="form-control" type="text" disabled="disabled">
				</div>
			</div> 
			 <div class="form-group">	
				<label class="col-sm-3 control-label">反馈内容：</label>
				<div class="col-sm-8">
					<textarea  rows="6" cols="4"id="content" name="content" th:field="*{content}" class="form-control" disabled="disabled">
					
					</textarea>
				</div>
			</div> 
			 <div class="form-group">	
				<label class="col-sm-3 control-label">反馈截图：</label>
				<div id ="imgDiv" class="col-sm-8">
					<img id="imgUrlView" alt="反馈截图" src="">
					<input  id="imgUrl" name="imgUrl" th:field="*{imgUrl}" class="form-control" type="hidden">
				</div>
			</div> 
			<div class="form-group">	
				<label class="col-sm-3 control-label">反馈时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text" disabled="disabled">
				</div>
				<div id="createTimeDiv" style="display: none;" class="form-control-static" th:text="${#dates.format(merchantFeedback.createTime, 'yyyy-MM-dd HH:mm:ss')}">
				</div>
			</div>
			 <div class="form-group">	
				<label class="col-sm-3 control-label">回复内容：</label>
				<div class="col-sm-8">
					<textarea rows="4" cols="6" id="replyContent" name="replyContent" th:field="*{replyContent}" class="form-control" >
						
					
					</textarea>
				</div>
			</div> 
			
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
    	$(function(){
    		var url = $("#imgUrl").val();
    		if(url!=null && url!= ""){
    			var imgStr= "<img  alt='反馈截图' width='100%' src='"+url+"'>";
    			$("#imgDiv").html(imgStr);
    		}
    		$("#createTime").val($("#createTimeDiv").text());
    	})
    
		var prefix = ctx + "system/merchantFeedback";
		$("#form-merchantFeedback-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-merchantFeedback-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
